package com.gx.smart.building.ui.inspection.fragment

import android.content.Intent
import android.view.ViewGroup
import com.gx.smart.base.BaseMVVMFragmentV2
import com.gx.smart.building.R
import com.gx.smart.building.databinding.FragmentInspectionTransformResultBinding
import com.gx.smart.building.ui.inspection.InspectionActivity
import com.gx.smart.building.ui.inspection.viewmodel.InspectionViewModel

class InspectionTransformResultFragment : BaseMVVMFragmentV2<InspectionViewModel>() {
    private lateinit var viewBinding: FragmentInspectionTransformResultBinding
    override fun onBindLayout(): Int = R.layout.fragment_inspection_transform_result

    override fun getToolbarTitle(): String = "任务完成"

    override fun onBindViewModel(): Class<InspectionViewModel> = InspectionViewModel::class.java

    override fun initContentView(root: ViewGroup) {
        viewBinding = FragmentInspectionTransformResultBinding.inflate(layoutInflater, root, true)
    }

    override fun initData() {
        viewBinding.back.setOnClickListener {
            startActivity(Intent(requireActivity(), InspectionActivity::class.java))
            requireActivity().finish()
        }
    }
}